package cn.sunxyz;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * Created by yangrd on 2017/5/12.
 */
public class PropertiesUtils {

    public static Properties getProperties(String name) {
        InputStream in =  ClassLoader.getSystemResourceAsStream(name);
        Properties p = new Properties();
        try {
            p.load(in);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return p;
    }

}
